Method and apparatus for storing information of a picture

ABSTRACT

Disclosed are method and apparatus for storing information of a picture. The method includes presenting a picture file to be edited, which at least includes original picture data; editing the picture file with an interface engine; integrating rendering information of the edited picture file according to a preset picture file format; and storing the original picture data and the rendering information. According to the invention, the interface engine is improved, and thus may directly edit a picture in use, and integrate the rendering information of the edited picture file according to a preset picture format. Therefore, during development, it is not required to store rendering information of a picture into codes, so that no programmer is required to intervene in rendering and setting of the picture. An art-designer may directly operate on the interface engine to change rendering effects, meanwhile, final rendering effects may be observed without running a program.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of International PatentApplication No. PCT/CN2011/078423, filed Aug. 15, 2011, entitled “METHODAND DEVICE FOR STORING PICTURE INFORMATION”, by Yuedong WENG et al.,which itself claims the priority to Chinese Patent Application No.201010610815.3, filed Dec. 23, 2010, entitled “METHOD AND DEVICE FORSTORING PICTURE INFORMATION”, by Yuedong WENG et al., which are herebyincorporated herein in their entireties by reference.

FIELD OF THE INVENTION

The present invention relates to the field of computers, and moreparticularly to a method and an apparatus for storing information of apicture and a non-transitory tangible computer-readable medium storinginstructions which, when executed by a processor, cause an apparatus toperform a method for storing information of a picture.

BACKGROUND OF THE INVENTION

Interface engine is a tool for interface development in a softwareproduct, so as to develop a WYSIWYG (What You See Is What You Get)software interface. The interface engine has been developing for severaldecades, can be used to manage picture resources during the process ofsoftware development, and has functions of cropping pictures andproducing special effects.

For most interface engines in the prior art, during the process ofdeveloping an interface picture, a developer usually edits a renderingeffect of the picture by configuring rendering information of thepicture, and directly stores the rendering information of the pictureinto codes, for example, writes the rendering information of the pictureinto an XML (Extensible Markup Language) description. When the imageneeds to be rendered on a screen, the XML is executed to read therendering information of the picture, so as to present the renderingeffect of the picture on the screen.

Since the prior art usually requires a developer to configure manyattributes, the developer needs to memorize the names of theseattributes. As a result, storage procedure of an existing picture israther inconvenient to use during the development process. In addition,the rendering effects of the picture cannot be viewed without running aprogram. Further, the configuration of the rendering information of thepicture, though being art-related work, must be performed by aprogrammer rather than an art designer. Moreover, if the same picture isrendered to different places in the same manner, the information must bewritten into codes for many times, which not only wastes the humanresources, but also increases the size of the installation packet.

Therefore, a heretofore unaddressed need exists in the art to addressthe aforementioned deficiencies and inadequacies.

SUMMARY OF THE INVENTION

The present invention is directed to, among other things, a method andan apparatus for storing information of a picture, and a non-transitorytangible computer-readable medium storing instructions which, whenexecuted by a processor, cause an apparatus to perform a method forstoring information of a picture.

In one aspect of the present invention, the method includes presenting afile of the picture to be edited, wherein the picture file to be editedat least comprises original data of the picture; editing the picturefile to be edited with an interface engine, and integrating renderinginformation of the edited picture file according to a preset picturefile format; and storing the original picture data and the renderinginformation of the picture.

In another aspect of the present invention, the apparatus has apresentation module adapted to present a file of the picture to beedited, wherein the picture file to be edited comprises at leastoriginal picture data; an integration module adapted to edit the picturefile to be edited with an interface engine, and integrate renderinginformation of the edited picture file according to a preset picturefile format; and a storage module adapted to store the original picturedata and the rendering information obtained through integration by theintegration module.

In yet another aspect, the present invention relates to a non-transitorytangible computer-readable medium storing instructions which, whenexecuted by a processor, cause an apparatus to perform a method forstoring information of a picture. The method includes presenting a fileof the picture to be edited, wherein the picture file to be edited atleast comprises original data of the picture; editing the picture fileto be edited with an interface engine, and integrating renderinginformation of the edited picture file according to a preset picturefile format; and storing the original picture data and the renderinginformation of the picture.

The technical solutions provided in the embodiments of the presentinvention have the following beneficial effects:

The interface engine is improved, so that the interface engine maydirectly edit a picture in use, and integrate the rendering informationof the edited picture file according to a preset picture format.Therefore, during development, it is not required to store renderinginformation of a picture into codes, so that no programmer is requiredto intervene in rendering and setting of the picture, and an artdesigner can directly operate on the interface engine to changerendering effects.

These and other aspects of the present invention will become apparentfrom the following description of the preferred embodiment taken inconjunction with the following drawings, although variations andmodifications therein may be effected without departing from the spiritand scope of the novel concepts of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings illustrate one or more embodiments of theinvention and, together with the written description, serve to explainthe principles of the invention. Wherever possible, the same referencenumbers are used throughout the drawings to refer to the same or likeelements of an embodiment. The drawings do not limit the presentinvention to the specific embodiments disclosed and described herein.The drawings are not necessarily to scale, emphasis instead being placedupon clearly illustrating the principles of the invention.

FIG. 1 is a flow chart of a method for storing information of a pictureaccording to a first embodiment of the present invention.

FIG. 2 is a flow chart of a method for storing information of a pictureaccording to a second embodiment of the present invention.

FIG. 3 is a schematic structural view of an apparatus for storinginformation of a picture according to a third embodiment of the presentinvention.

FIG. 4 is a schematic structural view of a presentation module accordingto one embodiment of the present invention.

FIG. 5 is a schematic structural view of the apparatus for storinginformation of a picture according to one embodiment of the presentinvention.

DETAILED DESCRIPTION OF THE INVENTION

The following description is merely illustrative in nature and is in noway intended to limit the disclosure, its applications, or uses. Thebroad teachings of the disclosure can be implemented in a variety offorms. Therefore, while this disclosure includes particular examples,the true scope of the disclosure should not be so limited since othermodifications will become apparent upon a study of the drawings, thespecification, and the following claims. For purposes of clarity, thesame reference numbers will be used in the drawings to identify similarelements.

The terms used in this specification generally have their ordinarymeanings in the art, within the context of the disclosure, and in thespecific context where each term is used. Certain terms that are used todescribe the disclosure are discussed below, or elsewhere in thespecification, to provide additional guidance to the practitionerregarding the description of the disclosure. It will be appreciated thatsame thing can be said in more than one way. Consequently, alternativelanguage and synonyms may be used for any one or more of the termsdiscussed herein, nor is any special significance to be placed uponwhether or not a term is elaborated or discussed herein. A recital ofone or more synonyms does not exclude the use of other synonyms. The useof examples anywhere in this specification including examples of anyterms discussed herein is illustrative only, and in no way limits thescope and meaning of the invention or of any exemplified term. Likewise,the invention is not limited to various embodiments given in thisspecification.

As used herein, the singular forms “a”, “an” and “the” are intended toinclude the plural forms as well, unless the context clearly indicatesotherwise. As used herein, the term “and/or” includes any and allcombinations of one or more of the associated listed items.

It will be further understood that the terms “comprises” and/or“comprising”, or “includes” and/or “including” or “has” and/or “having”when used in this specification, specify the presence of statedfeatures, regions, integers, steps, operations, elements, and/orcomponents, but do not preclude the presence or addition of one or moreother features, regions, integers, steps, operations, elements,components, and/or groups thereof.

As used herein, the phrase “at least one of A, B, and C” should beconstrued to mean a logical (A or B or C), using a non-exclusive logicalOR. It should be understood that one or more steps within a method maybe executed in different order (or concurrently) without altering theprinciples of the present disclosure.

As used herein, the term “picture” refers to a visual representation orimage of an object, photographed, painted, sculptured, electronicallyacquired or otherwise made visible.

As used herein, the term “module” may refer to, be part of, or includean Application Specific Integrated Circuit (ASIC); an electroniccircuit; a combinational logic circuit; a field programmable gate array(FPGA); a processor (shared, dedicated, or group) that executes code;other suitable hardware components that provide the describedfunctionality; or a combination of some or all of the above, such as ina system-on-chip. The term module may include memory (shared, dedicated,or group) that stores code executed by the processor.

The term “code”, as used herein, may include software, firmware, and/ormicrocode, and may refer to programs, routines, functions, classes,and/or objects. The term “shared”, as used herein, means that some orall code from multiple modules may be executed using a single (shared)processor. In addition, some or all code from multiple modules may bestored by a single (shared) memory. The term “group”, as used herein,means that some or all code from a single module may be executed using agroup of processors. In addition, some or all code from a single modulemay be stored using a group of memories.

The apparatuses and methods described herein may be implemented by oneor more computer programs executed by one or more processors. Thecomputer programs include processor-executable instructions that arestored on a non-transitory tangible computer readable medium. Thecomputer programs may also include stored data. Non-limiting examples ofthe non-transitory tangible computer readable medium are nonvolatilememory, magnetic storage, and optical storage.

The description is now made as to the embodiments of the presentinvention in conjunction with the accompanying drawings in FIGS. 1-5. Inaccordance with the purposes of this invention, as embodied and broadlydescribed herein, this invention relates to a method and an apparatusfor storing information of a picture and a computer-readable mediumstoring instructions which, when executed by a processor, cause theapparatus to perform the method for storing information of the picture.

Embodiment 1

Referring to FIG. 1, a flow chart of a method for storing information ofa picture is shown according to the first embodiment of the presentinvention. The method includes the following steps.

Step 101: A picture file to be edited is presented, where the picturefile to be edited at least includes original picture data.

Step 102: The picture file to be edited is edited with an interfaceengine, and rendering information of the edited picture file isintegrated according to a preset picture file format.

Step 103: The original picture data and the rendering information arestored.

In this exemplary embodiment, the interface engine is improved, so thatthe interface engine may edit a picture, and integrate the renderinginformation of the edited picture file according to a preset picturefile format. Therefore, during development of an interface picture, itis not required to store rendering information into code, so that thedeveloper does not need to memorize numerous attribute names, andrendering effects of the picture may be observed during development, andat the same time, the picture editing work may be performed by an artdesigner.

Embodiment 2

Referring to FIG. 2, a flow chart of a method for storing information ofa picture is shown according to a second embodiment of the presentinvention. The method is an improvement to EMBODIMENT 1 and includes thefollowing steps.

Step 201: An interface engine having a rendering tool is started.

In this embodiment, the interface engine is provided with an interfacethrough which a user edits a picture, and may present, through therendering tool and in the form of the interface, all renderingattributes for editing the picture by the user, and the user canintuitively modify the rendering information through the rendering tool.

Step 202: It is determined whether the picture file to be edited is apicture that is previously edited, and if yes, Step 203 is performed;otherwise, Step 204 is performed.

In this step, the interface engine determines whether the picture fileto be edited is a picture that is previously edited. Specifically, itincludes reading preset bytes of the picture file to be edited,determining whether the preset bytes are feature information, and ifyes, determining that the picture file to be edited is a picture that ispreviously edited; otherwise, determining that the picture file to beedited is not a picture that is previously edited.

For example, in this exemplary embodiment, a picture that is previouslyedited is stored by the interface engine in a preset picture fileformat, and preset bytes of the edited picture file are set to “TGF\0”during storage. The preset bytes store feature information, andtherefore the feature information of the picture file is set to “TGF\0”.In addition, in this embodiment, the first four bytes of the picture tobe edited may be defined as the preset bytes. Therefore, when theinterface engine reads the picture file to be edited, the first fourbytes of the picture file to be edited are read, and if the first fourbytes are “TGF\0”, the picture file to be edited is a picture that ispreviously edited; otherwise, the picture file to be edited is not apicture that is previously edited.

It should be noted that, the interface engine may also determine whetherthe read picture file to be edited is a picture that is previouslyedited by another method: the interface engine determines an extensionof the picture file to be edited when reading the picture file to beedited, and if the extension of the picture file to be edited is anextension preset by the interface engine, the picture file to be editedis a picture that is previously edited; otherwise, the picture file tobe edited is a picture that is not previously edited.

For example, the extension preset by the interface engine may be definedas “.tfg”; when reading the picture file to be edited, the interfaceengine reads the extension of the picture file to be edited, and if theextension of the picture file to be edited is “.tfg”, the picture fileto be edited is a picture that is previously edited; otherwise, thepicture file to be edited is not a picture that is previously edited.For example, a picture with an extension of “.jpg”, “.bmp” or “.png” isnot a picture that is previously edited.

Step 203: Rendering information and the original picture data of thepicture file to be edited are obtained through parsing, and the picturefile to be edited is presented on a screen according to the renderinginformation and the original picture data, and then Step 205 isperformed.

The interface engine used in this embodiment is an improved interfaceengine provided by the present invention, and the interface enginestores the edited picture in the preset picture file format of theinterface engine, and obtains the rendering information of the picturefile to be edited through parsing. In the present invention, a picturefile format is preset, and in the process of parsing the picture file tobe edited, each field of the picture file to be edited is read, and therendering information of the picture file to be edited is obtainedthrough parsing according to the preset picture file format.

The preset picture file format provided by the present invention isdescribed in detail below. The file in the preset picture file formatincludes a plurality of fields, where the fields are connected andstored in sequence. If the rendering information at least includesrendering texture mode information, blend rendering mode information andpicture data offset information, the preset picture file format at leastincludes a rendering texture mode information field, a blend renderingmode information field and a picture data offset information field. Ifthe rendering information further includes nine-square renderinginformation, key color information and mapping area information, thepreset picture file format may further include a nine-square renderinginformation field, a key color information field and a mapping areainformation field. In addition, the file in the preset picture fileformat may further include a version number information field, reservedfield and the like. Please refer to Table 1 for details.

TABLE 1 A preset picture file format Offset Size/Type DescriptionGFT_FILE_HEADER 0 1 DWORD Set to ‘TGF\0’ for the moment 4 1 WORD Versionnumber 6 1 WORD Reserved 8 1 DWORD Reserved (originally designed toindicate the file size) 12 1 WORD TextureMode 14 1 WORD BlendMode 16 1DWORD Picture data offset (when the offset is 0, no picture data isincluded) GFT_INFORMATION Nine-square drawing information 0 1 DWORD Setto ‘NINE’ for the moment 4 1 DWORD Block size 8 1 WORD Left border width10 1 WORD Top border height 12 1 WORD Right border width 14 1 WORDBottom border height Key color information 0 1 DWORD Set to ‘KEY\0’ forthe moment 4 1 DWORD Block size 8 1 BYTE RED 9 1 BYTE GREEN 10 1 BYTEBLUE 11 1 BYTE Reserved (which may be an alpha channel) Mapping area 0 1DWORD Set to ‘UV\0\0’ for the moment 4 1 DWORD Block size 8 1 WORDNumber of picture blocks divided 10 1 WORD Reserved 10h Attribute ofeach block 0 1 WORD X coordinate of top left corner 2 1 WORD Ycoordinate of top left corner 4 1 WORD X coordinate of bottom rightcorner 6 1 WORD Y coordinate of bottom right corner Start to storepicture data

In the above Table 1, Offset represents the offset; Size represents thesize; Type represents the type; DWORD represents a double word, that is,4 bytes; and WORD represents a word, that is, 2 bytes. Other data in theTable 1 is described in detail as follows:

Version number: for distinguishing the version of the format of thecurrent file, and supporting downward compatibility.

TextureMode: rendering texture mode of picture.

BlendMode: blend rendering mode of picture.

Picture data offset: for recording the offset of real picture data tothe file header.

Nine-square drawing information: Nine-square drawing means that thepicture is cut into nine parts, where the four corner areas are renderedon the screen on a scale of 1:1, and the four edge areas and the middlearea are directly stretched for rendering. This field recordsinformation about that the picture is divided into nine parts.

Key color information: for recording which color will finally not berendered on the screen, so as to achieve an effect of drawing anirregular shape.

Mapping area: for recording which rectangular areas in the image will befinally rendered on the screen.

The file in the preset picture file format includes a plurality offields, where the fields are connected and stored in sequence. When thepicture file to be edited is read, each field is read by reading blockinformation of the field, that is to say, after all block information ofa field is read, block information of the next field is read, until allthe fields of the picture file to be edited are read.

For blocks of each field, the first N fixed bytes have the samestructure. The fixed byte is generally used to represent an intrinsicattribute of the block, such as the name and size of the block.

Specifically, when information of a block of a field is read, a fixedbyte of the block is read first. After the fixed byte is read, the fixedbyte is parsed, and a corresponding operation is performed according towhether the parsing can be completed. If parsing of the fixed byte iscompleted, it indicates that the current field can be parsed; in thiscase, remaining bytes of the block are read, and after all the blocks ofthe field are read, information of the next field is read. If garbledcharacters are obtained after parsing, that is, the parsing cannot becompleted, it indicates that the current field cannot be parsed; in thiscase, the current field is skipped, and information of the next field ofthe picture file to be edited is directly read. Reading and parsing ofblock information ensure successful reading of information of fieldsthat can be parsed.

In actual applications, since it is required to support downwardcompatibility during version upgrading, when the current version is notdeclared, for example, when the current version is an upgraded version,the fixed bytes of the blocks of the current field cannot be parsed, andin this case, the current field is skipped, and information of the nextfield is directly read, so as to ensure successful reading of all thefields of the current version, that is, successful reading all thedeclared fields in the current version.

In this embodiment, when the picture file to be edited is presented, theinterface engine loads the rendering information and the originalpicture data of the picture file into the interface engine, in order todirectly render the edited picture on the screen, so as to achieveeffects that cannot be achieved by the interface engine in the priorart. The interface engine in the prior art is required to run the code,in order to observe the effect of rendering the picture on the screen.

Step 204: The original picture data of the picture file to be edited isobtained through parsing, and the picture file to be edited is presentedon a screen according to the original picture data.

In this embodiment, when it is determined that the picture file to beedited is a picture that is not previously edited by the interfaceengine, the interface engine parses the original picture data accordingto the format of the picture file to be edited, and presents originalpicture data on the screen.

For example, if the picture file to be edited is in the jpg format, theinterface engine parses the original picture data according to a methodfor parsing a jpg format file, and presents original picture data on thescreen.

Step 205: The picture file to be edited is edited with the interfaceengine, the rendering information of the edited picture file isintegrated according to a preset picture file format, and the originalpicture data and the rendering information are stored.

If the rendering information only includes rendering texture modeinformation, blend rendering mode information and picture data offsetinformation, the preset picture file format only includes a renderingtexture mode information field, a blend rendering mode information fieldand a picture data offset information field, and correspondingly, thestep of integrating the rendering information of the edited picture fileaccording to a preset picture file format specifically includes:sequentially adding the rendering texture mode information, the blendrendering mode information and the picture data offset information ofthe edited picture file according to a field sequence in the presetpicture file format.

Optionally, if the rendering information further includes nine-squarerendering information, key color information and mapping areainformation, the preset picture file format further includes anine-square rendering information field, a key color information fieldand a mapping area information field. Correspondingly, the step ofintegrating the rendering information of the edited picture fileaccording to a preset picture file format specifically includessequentially adding the rendering texture mode information, the blendrendering mode information, the picture data offset information, thenine-square rendering information, the key color information and themapping area information of the edited picture file according to a fieldsequence in the preset picture file format.

It should be noted that, when the presented picture file to be edited isa picture that is not previously edited, the step of storing the picturefile to be edited after editing the picture file to be edited mayfurther include: the interface engine creating, according to a presetpicture file format, fields (such as those shown in Table 1) of thefeature information and the rendering information for the picture fileto be stored, and integrating and storing the fields and the originalpicture data. A field is also created for the rendering information thatis not edited, and when the picture file is stored, the field is storedas a default value.

If the picture file to be edited is a picture that is previously edited,when the picture file to be edited is stored after the picture file tobe edited is edited, the interface engine checks the edited fieldsaccording to a field sequence in the preset picture file format, andupdates data in the edited fields.

It should be noted that, in the process of editing the picture file tobe edited, the method further includes: detecting boundary errors of therendering information of the picture file to be edited.

In addition, when storing the edited file, the interface engine storesthe edited file into a preset storage path in the preset picture fileformat, for example, in a storage medium such as a computer hard disk ora USB disk. At the same time, the rendering information is stored intothe file in the preset picture file format, and does not need to bestored into code, which overcomes the problems that the interface enginein the prior art is rather inconvenient to use, usually requiresconfiguration of many attributes, requires memorizing the names of theattributes, and fails to support a real-time preview effect, and thatthe effect cannot be observed without running a program.

According to this embodiment disclosed above, the interface engine isimproved, so that the interface engine may edit a picture, and integratethe rendering information of the edited picture file according to apreset picture file format. Therefore, during development of aninterface picture, it is not required to store rendering informationinto code, so that the developer does not need to memorize numerousattribute names, and rendering effects of the picture may be observedduring development, and at the same time, the picture editing work maybe performed by an art designer.

Embodiment 3

Referring to FIG. 3, a schematic structural view of an apparatus forstoring information of a picture is shown according to a thirdembodiment of the present invention. The apparatus includes:

a presentation module 301, adapted to present a picture file to beedited, where the picture file to be edited at least includes originalpicture data;

a integration module 302, adapted to edit the picture file to be editedwith an interface engine, and integrate rendering information of theedited picture file according to a preset picture file format; and

a storage module 303, adapted to store the original picture data and therendering information obtained through integration by the integrationmodule 302.

Further, as shown in FIG. 4, the presentation module 301 specificallyincludes:

a determining unit 3011, adapted to determine whether the picture fileto be edited is a picture that is previously edited;

a first presentation unit 3012, adapted to obtain the renderinginformation and the original picture data of the picture file to beedited through parsing, and present the picture file to be edited on ascreen according to the rendering information and the original picturedata, when the determining unit 3011 determines that the picture file tobe edited is a picture that is previously edited; and

a second presentation unit 3013, adapted to obtain the original picturedata of the picture file to be edited through parsing, and presentingthe picture file to be edited on the screen according to the originalpicture data, when the determining unit 3011 determines that the picturefile to be edited is not a picture that is previously edited.

It should be noted that, the determining unit 3011 is specificallyemployed to read out preset bytes of the picture file to be edited,determine whether the preset bytes are feature information, and if yes,determine that the picture file to be edited is a picture that ispreviously edited; otherwise, determine that the picture file to beedited is not a picture that is previously edited.

The first presentation unit 3012 specifically includes a first readingsubunit and a first presentation subunit, where the first readingsubunit is adapted to read out each field of the picture file to beedited, and obtaining the rendering information and the original picturedata of the picture file to be edited through parsing according to eachfield; and the first presentation subunit is adapted to present thepicture file to be edited on the screen according to the renderinginformation and the original picture data.

The first reading subunit is specifically adapted to read out a fixedbyte of a block of the field; parse the fixed byte, and if garbledcharacters are obtained after parsing, skip the field, and directly readout a next field of the picture file to be edited; and obtain therendering information and the original picture data of the picture fileto be edited through parsing according to each field.

The rendering information at least includes rendering texture modeinformation, blend rendering mode information and picture data offsetinformation, and the preset picture file format at least includes arendering texture mode information field, a blend rendering modeinformation field, and a picture data offset information field.Correspondingly, the integration module 302 is specifically adapted tosequentially add the rendering texture mode information, the blendrendering mode information and the picture data offset information ofthe edited picture file according to a field sequence in the presetpicture file format.

Optionally, the rendering information further includes nine-squarerendering information, key color information and mapping areainformation, and the preset picture file format further includes anine-square rendering information field, a key color information fieldand a mapping area information field. Correspondingly, the integrationmodule 302 is specifically adapted to sequentially add the renderingtexture mode information, the blend rendering mode information, thepicture data offset information, the nine-square rendering information,the key color information and the mapping area information of the editedpicture file according to a field sequence in the preset picture fileformat.

Additionally, as shown in FIG. 5, the apparatus may further include:

a detection module 304, adapted to detect boundary errors of therendering information of the picture file to be edited in the process ofediting the picture file to be edited.

In this embodiment, the interface engine edits a picture, and integratesthe rendering information of the edited picture file according to apreset picture file format. Therefore, during development of aninterface picture, it is not required to store rendering informationinto code, so that the developer does not need to memorize numerousattribute names, and rendering effects of the picture may be observedduring development, and at the same time, the picture editing work maybe performed by an art designer.

It should be noted that, the apparatus for storing information of apicture provided in the above embodiment is illustrated through thedivision of the above functional modules by way of example only. Inactual applications, the above functions may be implemented by differentfunctional modules according to the actual need, that is, the internalstructure of the apparatus may be divided into different functionalmodules for completing all or part of the above functions. In addition,the embodiments of the apparatus for storing information of a pictureand the method for storing information of a picture provided in theabove embodiments are based on the same idea. The specificimplementation process is disclosed in the embodiments of the method,and is not further described herein.

The sequence numbers of the above embodiments of the present inventionare merely for description purpose but do not indicate the preference ofthe embodiments.

All or part of the steps according to the embodiments of the presentinvention may be implemented by using software, and the correspondingsoftware programs may be stored in a readable storage medium, such as acompact disk or a hard disk.

Another aspect of the present invention provides a non-transitorytangible computer-readable medium storing instructions which, whenexecuted by a processor, cause an apparatus to perform a method forstoring information of a picture. The non-transitory tangiblecomputer-readable storage medium includes, but not limited to, disk,CD-ROM, read-only memory (ROM), random memory (RAM), flash dive, or thelikes.

As discussed above, the method in one embodiment includes presenting afile of the picture to be edited, wherein the picture file to be editedat least comprises original data of the picture; editing the picturefile to be edited with an interface engine, and integrating renderinginformation of the edited picture file according to a preset picturefile format; and storing the original picture data and the renderinginformation of the picture.

In one embodiment, the presenting of the picture file to be editedincludes determining whether the picture file to be edited is a picturethat is previously edited. If the picture file to be edited is a picturethat is previously edited, the presenting of the picture file to beedited includes obtaining the rendering information and the originalpicture data of the picture file to be edited through parsing, andpresenting the picture file to be edited on a screen according to therendering information and the original picture data. If the picture fileto be edited is a picture that is not previously edited, the presentingof the picture file to be edited includes obtaining the original picturedata of the picture file to be edited through parsing, and presentingthe picture file to be edited on the screen according to the originalpicture data.

In one embodiment, the determining of whether the picture file to beedited is a picture that is previously edited comprises reading outpreset bytes of the picture file to be edited; and determining whetherthe preset bytes are feature information, if yes, determining that thepicture file to be edited is a picture that is previously edited; ifnot, determining that the picture file to be edited is a picture that isnot previously edited.

Additionally, the method also comprises detecting boundary errors of therendering information of the picture file to be edited in the process ofediting the picture file to be edited.

In one embodiment, the rendering information comprises at leastrendering texture mode information, blend rendering mode information andpicture data offset information, and the preset picture file formatcomprises at least a rendering texture mode information field, a blendrendering mode information field, and a picture data offset informationfield. Accordingly, the integrating of the rendering information of theedited picture file according to the preset picture file formatcomprises sequentially adding the rendering texture mode information,the blend rendering mode information and the picture data offsetinformation of the edited picture file according to a field sequence inthe preset picture file format.

Furthermore, the rendering information may also have nine-squarerendering information, key color information and mapping areainformation, and the preset picture file format further comprises anine-square rendering information field, a key color information fieldand a mapping area information field. The integrating of the renderinginformation of the edited picture file according to a preset picturefile format specifically comprises sequentially adding the renderingtexture mode information, the blend rendering mode information, thepicture data offset information, the nine-square rendering information,the key color information and the mapping area information of the editedpicture file according to a field sequence in the preset picture fileformat.

In one embodiment, the obtaining of the rendering information and theoriginal picture data of the picture file to be edited through parsingcomprises reading out each field of the picture file to be edited; andobtaining the rendering information and the original picture data of thepicture file to be edited through parsing according to each field.

In one embodiment, the reading out of each field of the picture file tobe edited comprises reading out a fixed byte of a block of the field;and parsing the fixed byte, and if garbled characters are obtained afterparsing, skipping the field, and directly reading out a next field ofthe picture file to be edited.

The foregoing description of the exemplary embodiments of the inventionhas been presented only for the purposes of illustration and descriptionand is not intended to be exhaustive or to limit the invention to theprecise forms disclosed. Many modifications and variations are possiblein light of the above teaching.

The embodiments are chosen and described in order to explain theprinciples of the invention and their practical application so as toactivate others skilled in the art to utilize the invention and variousembodiments and with various modifications as are suited to theparticular use contemplated. Alternative embodiments will becomeapparent to those skilled in the art to which the present inventionpertains without departing from its spirit and scope. Accordingly, thescope of the present invention is defined by the appended claims ratherthan the foregoing description and the exemplary embodiments describedtherein.

What is claimed is:
 1. A method for storing information of a picture,comprising: presenting a file of the picture to be edited, wherein thepicture file to be edited at least comprises original data of thepicture; editing the picture file to be edited with an interface engine,and integrating rendering information of the edited picture fileaccording to a preset picture file format; and storing the originalpicture data and the rendering information of the picture.
 2. The methodaccording to claim 1, wherein the presenting of the picture file to beedited comprises: determining whether the picture file to be edited is apicture that is previously edited; if yes, obtaining the renderinginformation and the original picture data of the picture file to beedited through parsing, and presenting the picture file to be edited ona screen according to the rendering information and the original picturedata; and if not, obtaining the original picture data of the picturefile to be edited through parsing, and presenting the picture file to beedited on the screen according to the original picture data.
 3. Themethod according to claim 2, wherein the determining of whether thepicture file to be edited is a picture that is previously editedcomprises: reading out preset bytes of the picture file to be edited;and determining whether the preset bytes are feature information, ifyes, determining that the picture file to be edited is a picture that ispreviously edited; if not, determining that the picture file to beedited is a picture that is not previously edited.
 4. The methodaccording to claim 1, further comprising: detecting boundary errors ofthe rendering information of the picture file to be edited in theprocess of editing the picture file to be edited.
 5. The methodaccording to claim 1, wherein the rendering information comprises atleast rendering texture mode information, blend rendering modeinformation and picture data offset information, and the preset picturefile format comprises at least a rendering texture mode informationfield, a blend rendering mode information field, and a picture dataoffset information field; and wherein the integrating of the renderinginformation of the edited picture file according to the preset picturefile format comprises sequentially adding the rendering texture modeinformation, the blend rendering mode information and the picture dataoffset information of the edited picture file according to a fieldsequence in the preset picture file format.
 6. The method according toclaim 5, wherein the rendering information further comprises nine-squarerendering information, key color information and mapping areainformation, and the preset picture file format further comprises anine-square rendering information field, a key color information fieldand a mapping area information field; and wherein the integrating of therendering information of the edited picture file according to a presetpicture file format specifically comprises sequentially adding therendering texture mode information, the blend rendering modeinformation, the picture data offset information, the nine-squarerendering information, the key color information and the mapping areainformation of the edited picture file according to a field sequence inthe preset picture file format.
 7. The method according to claim 2,wherein the obtaining of the rendering information and the originalpicture data of the picture file to be edited through parsing comprises:reading out each field of the picture file to be edited; and obtainingthe rendering information and the original picture data of the picturefile to be edited through parsing according to each field.
 8. The methodaccording to claim 7, wherein the reading out of each field of thepicture file to be edited comprises: reading out a fixed byte of a blockof the field; and parsing the fixed byte, and if garbled characters areobtained after parsing, skipping the field, and directly reading out anext field of the picture file to be edited.
 9. An apparatus for storinginformation of a picture, comprising: a presentation module adapted topresent a file of the picture to be edited, wherein the picture file tobe edited comprises at least original picture data; an integrationmodule adapted to edit the picture file to be edited with an interfaceengine, and integrate rendering information of the edited picture fileaccording to a preset picture file format; and a storage module adaptedto store the original picture data and the rendering informationobtained through integration by the integration module.
 10. Theapparatus according to claim 9, wherein the presentation modulecomprises: a determining unit adapted to determine whether the picturefile to be edited is a picture that is previously edited; a firstpresentation unit adapted to obtain rendering information and theoriginal picture data of the picture file to be edited through parsing,and present the picture file to be edited on a screen according to therendering information and the original picture data, when thedetermining unit determines that the picture file to be edited is apicture that is previously edited; and a second presentation unitadapted to obtain the original picture data of the picture file to beedited through parsing, and present the picture file to be edited on thescreen according to the original picture data, when the determining unitdetermines that the picture file to be edited is a picture that is notpreviously edited.
 11. The apparatus according to claim 10, wherein thedetermining unit is adapted to reading out preset bytes of the picturefile to be edited, and determine whether the preset bytes are featureinformation, if yes, determine that the picture file to be edited is apicture that is previously edited, and if not, determine that thepicture file to be edited is a picture that is not previously edited.12. The apparatus according to claim 9, further comprising: a detectionmodule adapted to detect boundary errors of the rendering information ofthe picture file to be edited in the process of editing the picture fileto be edited.
 13. The apparatus according to any one of claim 9, whereinthe rendering information comprises at least rendering texture modeinformation, blend rendering mode information and picture data offsetinformation, and the preset picture file format comprises at least arendering texture mode information field, a blend rendering modeinformation field, and a picture data offset information field; andwherein the integration module is adapted to sequentially add therendering texture mode information, the blend rendering mode informationand the picture data offset information of the edited picture fileaccording to a field sequence in the preset picture file format.
 14. Theapparatus according to claim 13, wherein the rendering informationfurther comprises nine-square rendering information, key colorinformation and mapping area information, and the preset picture fileformat further comprises a nine-square rendering information field, akey color information field and a mapping area information field; andwherein the integration module is adapted to sequentially add therendering texture mode information, the blend rendering modeinformation, the picture data offset information, the nine-squarerendering information, the key color information and the mapping areainformation of the edited picture file according to a field sequence inthe preset picture file format.
 15. The apparatus according to claim 10,wherein the first presentation unit comprises a first reading subunitand a first presentation subunit, wherein the first reading subunit isadapted to read out each field of the picture file to be edited, andobtain the rendering information and the original picture data of thepicture file to be edited through parsing according to each field; andwherein the first presentation subunit is adapted to present the picturefile to be edited on the screen according to the rendering informationand the original picture data.
 16. The apparatus according to claim 15,wherein the first reading subunit is adapted to read out a fixed byte ofa block of the field; parse the fixed byte, and if garbled charactersare obtained after parsing, skip the field, and directly read out a nextfield of the picture file to be edited; and obtain the renderinginformation and the original picture data of the picture file to beedited through parsing according to each field.
 17. A non-transitorytangible computer-readable medium storing instructions which, whenexecuted by a processor, cause an apparatus to perform a method forstoring information of a picture, the method comprising: presenting afile of the picture to be edited, wherein the picture file to be editedat least comprises original data of the picture; editing the picturefile to be edited with an interface engine, and integrating renderinginformation of the edited picture file according to a preset picturefile format; and storing the original picture data and the renderinginformation of the picture.
 18. The non-transitory tangiblecomputer-readable medium according to claim 17, wherein the presentingof the picture file to be edited comprises: determining whether thepicture file to be edited is a picture that is previously edited; ifyes, obtaining the rendering information and the original picture dataof the picture file to be edited through parsing, and presenting thepicture file to be edited on a screen according to the renderinginformation and the original picture data; and if not, obtaining theoriginal picture data of the picture file to be edited through parsing,and presenting the picture file to be edited on the screen according tothe original picture data.
 19. The non-transitory tangiblecomputer-readable medium according to claim 18, wherein the determiningof whether the picture file to be edited is a picture that is previouslyedited comprises: reading out preset bytes of the picture file to beedited; and determining whether the preset bytes are featureinformation, if yes, determining that the picture file to be edited is apicture that is previously edited; if not, determining that the picturefile to be edited is a picture that is not previously edited.
 20. Thenon-transitory tangible computer-readable medium according to claim 17,wherein the method further comprises: detecting boundary errors of therendering information of the picture file to be edited in the process ofediting the picture file to be edited.